class Person:
    def __init__(self, name, weight):
        self.name = name
        self.weight = weight

    def __str__(self):
        return "我的名字是%s,体重是%.2f公斤" % (self.name, self.weight)

    def run(self):
        print("%s喜欢跑步，锻炼身体" % self.name)
        self.weight -= 0.5

    def eat(self):
        print("%s是吃货，吃完这顿再减肥" % self.name)
        self.weight += 0.5


if __name__ == '__main__':
    p1 = Person("小明", 70)
    print(p1)
    p1.eat()
    p1.run()
    p1.eat()
    print(p1)